package com.jv.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jv.dao.SmallTypeDao;
import com.jv.entity.SmallType;
import com.jv.service.ISmallTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
 * smallTypeService商品小类实现类
 * @author Jv
 * @version 1.0
 */
@Service("smallTypeService")
public class ISmallTypeServiceImpl extends ServiceImpl<SmallTypeDao, SmallType>implements ISmallTypeService{
    @Autowired
    private SmallTypeDao smallTypeDao;

    @Override
    public List<SmallType> list(HashMap<String, Object> map) {
        return smallTypeDao.list(map);
    }

    @Override
    public Long getTotals(HashMap<String, Object> map) {
        return smallTypeDao.getTotal(map);
    }
}
